<?php if (!defined('MAX_ON')){echo "<h1>ACCESS DENIED</h1>You cannot access this file directly.";exit();} ?>
<?php if ($template_hook=='start'){ ?>
<?php }elseif ($template_hook=='1'){ ?>
	<form enctype="multipart/form-data" method="post" action="<?php echo max_link('index.php?page=gallery&act=upload', 'gallery/upload'); ?>">
	
		<input type="hidden" name="MAX_FILE_SIZE" value="99999999999999999999" />

	<table class="forum-board-forum-head" cellpadding="0" cellspacing="0">
		<tr><td class="forum-topic-subject"><?php echo $lang['page_title_upload']; ?></td></tr>
	</table>
	
	<table class="forum-index" cellpadding="0" cellspacing="0">
	
		<tr>
			<td class="forum-index-stats-header forum-index-top">
				<?php echo $lang['upload_details']; ?>
			</td>
		</tr>
		
		<tr>
			<td class="forum-jump-content forum-index-top forum-index-bottom">
			
				<?php echo $lang['upload_details_info']; ?><br /><br />
				
				<div class="f_right" style="width: 30%;">
					<strong><?php echo $lang['upload_details_title']; ?></strong>
				</div>
				<div>
					<input type="text" name="title" value="" style="width: 380px" />
				</div>
				
				<br /><br />
				
				<div class="f_right" style="width: 30%;">
					<strong><?php echo $lang['upload_details_desc']; ?></strong>
				</div>
				<div>
					<textarea name="description" cols="70" rows="10"></textarea>
				</div>
				
			</td>
		</tr>
		
		<tr>
			<td class="forum-index-stats-header forum-index-top">
				<?php echo $lang['upload_location']; ?>
			</td>
		</tr>
		
		<tr>
			<td class="forum-jump-content forum-index-top forum-index-bottom">
			
				<?php echo $lang['upload_location_info']; ?><br /><br />
				
				<input type="file" name="image" size="50" style="width: 50%;" />
			
			</td>
		</tr>
		
		<tr>
			<td class="forum-index-stats-header forum-index-top">
				<?php echo $lang['upload_album']; ?>
			</td>
		</tr>
		
		<tr>
			<td class="forum-jump-content forum-index-top forum-index-bottom">
			
				<?php echo $lang['upload_album_info']; ?><br /><br />
				
				<select name="album">
<?php }elseif ($template_hook=='2'){ ?>
					<option value="<?php echo $row['id']; ?>"><?php echo $row['name']; ?></option>
<?php }elseif ($template_hook=='3'){ ?>
				</select>
			
			</td>
		</tr>
		
		<tr>
			<td class="forum-index-stats-header forum-index-top" style="text-align: center;">
	
				<input type="hidden" name="token_id" value="<?php echo $token_id; ?>" />
				<input type="hidden" name="<?php echo $token_name; ?>" value="<?php echo $token; ?>" />
				<input type="submit" name="upload_image" class="img-submit" value="<?php echo $lang['button_submit']; ?>" />
			</td>
		</tr>

	</table>

	</form>
	
	<table class="forum-index-forum-footer" cellpadding="0" cellspacing="0">
		<tr><td class="forum-index-forum-footer-contents"> </td></tr>
	</table>
<?php } ?>